﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_Client_RemindManage.aspx.cs" Inherits="Admin_Admin_Client_RemindManage" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="TabText">
        <%--列表信息 begin--%>
        <asp:Panel ID="pnlManage" runat="server">
            <table class="nick" id="table_item" runat="server">
                <tr>
                    <td class="tit left1">
                        &nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">预约提醒管理</asp:Literal>
                    </td>
                </tr>
            </table>
            <table class="nick">
                <tr>
                    <td colspan="4" class="tit">
                        &nbsp;<b>高级查询：</b>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        具体时间：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtBeginTime" runat="server" onfocus="WdatePicker()" CssClass="Wdate"></asp:TextBox>
                        &nbsp;&nbsp;至&nbsp;&nbsp;<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate"></asp:TextBox>
                    </td>
                    <td class="ltd">
                        处理情况：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:DropDownList ID="ddlStatus" runat="server">
                            <asp:ListItem Value="">全部</asp:ListItem>
                            <asp:ListItem Value="0">未处理</asp:ListItem>
                            <asp:ListItem Value="1">已处理</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户名称：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchClientName" runat="server" Width="120px"></asp:TextBox>
                    </td>
                    <td class="ltd">
                        预约提醒时间：
                    </td>
                    <td class="rtd">
                        &nbsp;
                        <asp:DropDownList ID="ddlDate" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SeachBut_Click">
                            <asp:ListItem Value="">全部</asp:ListItem>
                            <asp:ListItem Value="10">十天内</asp:ListItem>
                            <asp:ListItem Value="30">一个月内</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Button ID="SeachBut" runat="server" Text="查询" OnClick="SeachBut_Click" />
                    </td>
                </tr>
            </table>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="gvManage" CssClass="adminlist" runat="server" AutoGenerateColumns="false"
                        AllowPaging="True" OnRowDataBound="gvManage_RowDataBound" OnPageIndexChanging="gvManage_PageIndexChanging"
                        PageSize="10">
                        <Columns>
                            <asp:BoundField HeaderText="提醒时间" DataField="RemindTime" />
                            <asp:BoundField HeaderText="客户名称" DataField="ClientName" />
                            <asp:TemplateField HeaderText="提醒方式">
                                <ItemTemplate>
                                    <asp:Image ID="imgEmail" ImageUrl="~/Images/Client/mail_gray.gif" runat="server" />
                                    <asp:Image ID="imgMobile" ImageUrl="~/Images/Client/phone_gray.gif" runat="server" />
                                    <asp:HiddenField ID="hfEmail" runat="server" Value='<%# Eval("RemindByEmail") %>' />
                                    <asp:HiddenField ID="hfMobile" runat="server" Value='<%# Eval("RemindBySms") %>' />
                                    <asp:HiddenField ID="hfTip" runat="server" Value='<%# Eval("RemindByTips") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="创建人" DataField="Creater" />
                            <asp:TemplateField HeaderText="处理情况">
                                <ItemTemplate>
                                    <asp:Label ID="lblStatus" runat="server" Text='<%# GetResult(Eval("Status").ToString())%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlCheckInfo" runat="server" Text="详细" NavigateUrl='<%# "Admin_Client_RemindManage.aspx?MenuID=2&MenuName=客户管理&FileName=预约提醒详细信息&action=checkinfo&RemindId="+Eval("RemindId")%>'>
                                    </asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            <table class="adminlist" width="100%">
                                <tr>
                                    <th>
                                        提醒时间
                                    </th>
                                    <th>
                                        客户名称
                                    </th>
                                    <th>
                                        提醒方式
                                    </th>
                                    <th>
                                        创建人
                                    </th>
                                    <th>
                                        处理情况
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                                <td colspan="6" style="text-align: center">
                                    没有符合条件的联系人数据！
                                </td>
                            </table>
                        </EmptyDataTemplate>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div class="page">
                <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
            </div>
        </asp:Panel>
        <%--列表信息 end--%>
        <%--详细信息 begin--%>
        <asp:Panel ID="pnlCheckInfo" runat="server">
            <table class="nick">
                <tr>
                    <td colspan="2" class="tit">
                        &nbsp;预约提醒的详细信息
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户名称：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblClientName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        预约联系方式
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRelationType" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        客户方联系人：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblCorrelativeContacter" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        主动提醒方式：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRemindFashion" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        提醒内容：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRemindContent" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        预约创建时间：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblCreateTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        预约提醒时间：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblRemindTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        创建人：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblCreater" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        处理结果：
                    </td>
                    <td class="rtd">
                        <asp:Label ID="lblResult" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="button" id="btn" onclick="history.back()" value="返回" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <%--详细信息 end--%>
    </div>
</asp:Content>
